package start.demo01.email;

import java.io.Serializable;
import java.time.LocalDate;
/**
 * 前端用户domain
 * @author Adan
 *
 */
public class User implements Serializable{
	private static final long serialVersionUID = 1L;
	/**
	 * id
	 */
	private Integer id;
	/**
	 * 用户名，唯一
	 */
	private String username;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 电子邮箱
	 */
	private String email;
	/**
	 * 用户是否激活
	 */
	private boolean status = false;
	/**
	 * 注册日期
	 */
	private LocalDate registeDate = LocalDate.now();

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	public LocalDate getRegisteDate() {
		return registeDate;
	}
	public void setRegisteDate(LocalDate registeDate) {
		this.registeDate = registeDate;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", password=" + password + ", email=" + email + ", status="
				+ status + ", registeDate=" + registeDate + "]";
	}
}
